package com.aorise.model.bayonet;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @Auther: zhouhao
 * @Date: 2019/6/26
 * @Description:    添加卡口设备Model
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="添加卡口设备",description="添加卡口设备")
public class BayonetCameraModel {

    @ApiModelProperty(value = "主键(设备ID,修改设备时传入)",example = "1",dataType = "int")
    private Integer id;

    @ApiModelProperty(value = "所属卡口ID",example = "1",dataType = "string")
    @NotNull(message = "所属卡口不能为空")
    private String bayoneId;

    @ApiModelProperty(value = "设备名称",example = "1",dataType = "string")
    @NotNull(message = "设备名称不能为空")
    private String  caName;

    @ApiModelProperty(value = "设备编码",example = "1",dataType = "string")
    @NotNull(message = "设备编码不能为空")
    private String  caNumber;

    @ApiModelProperty(value = "IP地址",example = "1",dataType = "int")
    private String  ip;

    @ApiModelProperty(value = "设备类型",example = "1",dataType = "int")
    @NotNull(message = "设备类型不能为空")
    private Integer caType;

    @ApiModelProperty(value = "设备型号",example = "1",dataType = "string")
    private String  unitType;

    @ApiModelProperty(value = "连接状态",example = "1",dataType = "int")
    private Integer online;

    @ApiModelProperty(value = "监控车道",example = "1",dataType = "string")
    private String  monitorLane;

    @ApiModelProperty(value = "抓拍车道",example = "1",dataType = "string")
    private String  shootLane;

    @ApiModelProperty(value = "状态",example = "1",dataType = "int",hidden = true)
    private Integer state;

    @ApiModelProperty(value = "创建人",example = "1",dataType = "int",hidden = true)
    private Integer createUser;

    @ApiModelProperty(value = "修改人",example = "1",dataType = "int",hidden = true)
    private Integer editUser;


}
